package com.supermap.dataservice.server.mysql;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.fastjson.JSONObject;
import com.supermap.dataservice.mysql.service.DataService;
import com.supermap.dubbo.service.DataDubboService;

import javax.annotation.Resource;

/**
 * 城市业务 Dubbo 服务层实现层
 * <p>
 * Created by bysocket on 28/02/2017.
 */
// 注册为 Dubbo 服务
@Service(version = "1.0.0")
public class DataDubboServiceImpl implements DataDubboService {

    @Resource
    DataService dataService;

    @Override
    public JSONObject selectData(String sql) {
        return dataService.selectData(sql);
    }

    @Override
    public JSONObject updateData(String sql) {
        return dataService.updateData(sql);
    }

    @Override
    public JSONObject insertData(String sql) {
        return dataService.insertData(sql);
    }

    @Override
    public JSONObject deleteData(String sql) {
        return dataService.deleteData(sql);
    }
}
